package com.wn.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.common.model.dto.BorrowRecordDTO;
import com.wn.trade.bean.BorrowRecord;

import java.util.Map;

/**
 * @author yellow Docter
 * @date 2023 -07-31
 * @desc
 */
public interface IBorrowRecordService extends IService<BorrowRecord> {
    void borrow(BorrowRecordDTO borrowRecordDTO);

    String changeStatus(Long borrowId, Integer status);

    Map<String,Object> addAgencyBid(Long borrowId, Integer amount);

    String agencyBidStatus(Long borrowId, String commission, String status);
}
